package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单状态记录
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("order_status")
public class OrderStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    /**
    * 订单编号
    */
    @TableField("order_no")
    private String orderNo;


    /**
    * 订单ID
    */
    @TableField("order_id")
    private Long orderId;


    /**
    * 分类   1-下单 2-支付 3-采购 4-出库 5-配送 6-售后
    */
    @TableField("catalog")
    private String catalog;


    /**
    * 状态值
    */
    @TableField("action_code")
    private Integer actionCode;


    /**
    * 状态说明
    */
    @TableField("action_desc")
    private String actionDesc;


    /**
    * 发生时间
    */
    @TableField("action_datetime")
    private LocalDateTime actionDatetime;


    /**
    * 关联ID
    */
    @TableField("ref_id")
    private Long refId;


    /**
    * 关联单号  按不同状态关联不同的单号
    */
    @TableField("ref_no")
    private String refNo;


    /**
    * 制单人
    */
    @TableField("created_by")
    private String createdBy;


    /**
    * 建立时间
    */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
    * 修改时间
    */
    @TableField("updated_time")
    private LocalDateTime updatedTime;


    /**
    * 修改人
    */
    @TableField("updated_by")
    private String updatedBy;


    @TableField("deleted")
    private Integer deleted;
}
